﻿using APPFrameworkStudy.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APPFrameworkStudy.Domain
{
    public class Product : IEntity
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public decimal Price { get; set; }
        [Required]
        public Order Order { get; set; }

        public decimal GetAmount()
        {
            return Price;
        }
    }
}
